<template>
    <section class="edit-dialog">
        <AsnDialog :isShow="isShow" :form="form" @closeDialog="closeDialog" @sendRequest="sendRequest">
        </AsnDialog>
    </section>
</template>

<script>
export default {
    data() {
        return {
            isShow: false,
            title: '编辑',
            form: {},
            api: ''
        }
    },
    methods: {
        showDialog(api, item) {
            this.isShow = true
            this.api = api
            this.form = Object.assign({}, item)
        },
        closeDialog(isShow) {
            this.isShow = isShow
        },
        sendRequest(isShow, item) {
            this.isShow = isShow
            console.log(item);
        }
    }
}
</script>

<style lang="scss" scoped>
.edit-dialog {}
</style>